<%@ Page Language="VB" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="nFlickrViewer._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title runat="server" id="PageTitle">nFlickrViewer</title>
    <script type="text/javascript" src="swfobject.js"></script>
    <script type="text/javascript" >
    function wopen(url, name, w, h)
{
  // Fudge factors for window decoration space.
  // In my tests these work well on all platforms & browsers.
  w += 32;
  h += 96;
  wleft = (screen.width - w) / 2;
  wtop = (screen.height - h) / 2;
  // IE5 and other old browsers might allow a window that is
  // partially offscreen or wider than the screen. Fix that.
  // (Newer browsers fix this for us, but let's be thorough.)
  if (wleft < 0) {
    w = screen.width;
    wleft = 0;
  }
  if (wtop < 0) {
    h = screen.height;
    wtop = 0;
  }
  var win = window.open(url,
    name,
    'width=' + w + ', height=' + h + ', ' +
    'left=' + wleft + ', top=' + wtop + ', ' +
    'location=no, menubar=no, ' +
    'status=no, toolbar=no, scrollbars=no, resizable=no');
  // Just in case width and height are ignored
  win.resizeTo(w, h);
  // Just in case left and top are ignored
  win.moveTo(wleft, wtop);
  win.focus();
}


    </script>
    <link rel="stylesheet" href="style.css" type="text/css" media="all" title="FlickrViewer Styles" charset="utf-8" />
</head>
<body>

    <div id="simpleViewer">SimpleViewer requires Macromedia Flash. <a href="http://www.macromedia.com/go/getflashplayer/">Get Macromedia Flash.</a> If you have Flash installed, <a href="default.aspx?detectflash=false">click to view gallery</a>.</div>	

    <script type="text/javascript">
    var fo = new SWFObject("viewer.swf", "viewer", "100%", "100%", "7", "#181818");	
    fo.addVariable("preloaderColor", "0xffffff");
    fo.addVariable("xmlDataPath", '<%=xmlPath %>');	
    fo.addParam("quality", "best");
    fo.addParam("wmode", "transparent");
    fo.write("simpleViewer");	
    </script>	

    <p>
    <asp:HyperLink  id="hlContact" runat="server">Contact Me</asp:HyperLink>&nbsp;&nbsp;|&nbsp;&nbsp;
    <a href="#" onclick="javascript:wopen('admin.aspx','admin',400,300);">Admin</a>&nbsp;&nbsp;|&nbsp;&nbsp;
    Powered by <a href="http://www.airtightinteractive.com/simpleviewer/" title="a free, customizable Flash image viewing application">SimpleViewer</a> and <a href="http://www.codeplex.com/nFlickrViewer/" title="Flickr API interface for SimpleViewer">nFlickrViewer</a></p>


</body>
</html>
